package com.cooriproject.basemanage.service;

import com.cooriproject.basemanage.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService{

    int insertSelective(@Param("record")User record);

    List<User> selectByPrimaryKey(@Param("userId")Integer userId);

    List<User> registervail(@Param("userName")String userName);

    List<User> selectByUserNameAndUserPwd(@Param("userName")String userName, @Param("userPwd")String userPwd);

    List<User> selectAll();

    int updatepwdByUserName(@Param("userName")String userName, @Param("userPwd")String userPwd);

    int updatetypeByPrimaryKey(@Param("userId")Integer userId,@Param("userType")Integer userType);

    int updateUserInfo_user(@Param("userPwd")String userPwd,@Param("userId")Integer userId,@Param("userRealname")String userRealname,@Param("userTel")String userTel,@Param("userMail")String userMail,@Param("userDepart")Integer userDepart);

    int deleteByPrimaryKey(@Param("userId")Integer userId);

    List<User> selectAllByUserId(@Param("userId")Integer userId);
}
